#include <iostream>
#include <string>

using namespace std;
int main()
{
    cout<<"Write a suggestion!";
    string text, word;
    getline(cin, text);

    int colvo_slov=1, i2=0;
    int count1939  = text.size(),n=0;

    for (int i = 0; i<count1939; i++){
        if (text[i] == ' '){
            colvo_slov++;
            word = text.substr(i2, i-i2);
            if(word[0]>=-128&&word[0]<=-97)
               n++;
            i2=i+1;

    }
    }

    word = text.substr(i2, count1939-i2);
    if (word[0]>=-128&&word[0]<=-97)
        n++;
    cout << "Number of words:"<<colvo_slov<<endl<<endl;
    cout << "The number of words with a capital Russian letter:"<<n<<endl;


}

